package com.billing.model.entity;

import java.text.SimpleDateFormat;

public class Comment {

	private Integer id; // 主键
	private Integer consultation_id;// 作品id
	private Integer articletype_type;// 作品类型
	private String content;// 评论内容
	private Integer from_uid;// 评论用户id
	private Long comment_date;// 评论时间
	private String comment_dateString;// 评论日期字符串格式
	private String uname;

	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getConsultation_id() {
		return consultation_id;
	}

	public void setConsultation_id(Integer consultation_id) {
		this.consultation_id = consultation_id;
	}

	public Integer getArticletype_type() {
		return articletype_type;
	}

	public void setArticletype_type(Integer articletype_type) {
		this.articletype_type = articletype_type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getFrom_uid() {
		return from_uid;
	}

	public void setFrom_uid(Integer from_uid) {
		this.from_uid = from_uid;
	}

	public Long getComment_date() {
		return comment_date;
	}

	public void setComment_date(Long comment_date) {
		this.comment_date = comment_date;
		if (comment_date != null && !comment_date.equals("")) {
			this.comment_dateString = format.format(comment_date);
		}
	}

	public String getComment_dateString() {
		return comment_dateString;
	}

	public void setComment_dateString(String comment_dateString) {
		this.comment_dateString = comment_dateString;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

}
